var server = require('http').createServer();
var io = require('socket.io')(server);
io.on('connection', function(client){
    client.emit('new_msg', { hello: 'world' });
    client.on('send_serve', function (data) {
        console.log(data);
    });
    //client.on('disconnect', function(data){console.log(data)});
});
server.listen(8989);